package org.tarena.note.web.controller.note;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.tarena.note.entity.Note;
import org.tarena.note.entity.NoteResult;
import org.tarena.note.service.NoteServiceImpl;

@Controller
@RequestMapping("/note")
public class UpdateNoteController {
	@Resource
	private NoteServiceImpl noteService;
	@RequestMapping("/update.form")
	@ResponseBody
	public NoteResult execute(Note note){
		return noteService.update(note);
	}
}
